package com.roc.steelend.controller;


import com.roc.steelend.controller.vo.returnformat.EchartsMsg;
import com.roc.steelend.service.EchartsService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.crypto.interfaces.PBEKey;
import java.util.List;

@RestController
@CrossOrigin
@Api(tags = "echarts图功能接口")
public class EchartsController {


    @Autowired
    private EchartsService echartsService;

    @GetMapping("/v1/get/echarts/pay/nopay")
    public List<EchartsMsg> getEchartsPaynopay() {


        return echartsService.getEchartsPaynopay();
    }


    @GetMapping("/v1/get/echarts/invoice/noinvoice")
    public List<EchartsMsg> getEchartsInvoice() {


        return echartsService.getEchartsInvoice();
    }


}



